             offset += layout.font_stretch * width
 
           # offset for right numbers
-          offset = 49 * item_width + ((if settings.prefix then layout.prefix_offset * canvas.width else 0))
+          offset = 49 * item_width + ((if @settings.prefix then layout.prefix_offset * @element.width else 0))
 
           # loop though right chars
-          $.each number.substr(6).split(""), (key, value) ->
+          $.each @number.substr(7).split(""), (key, value) ->
             
             # print text
             context.fillText value, offset, border_height * layout.font_y

        code += z[parts[i]]
        i++

      # check if canvas-element is available
      if canvas.getContext

        # get draw context
        context = canvas.getContext("2d")

        # set fill color
        context.fillStyle = settings.color

        # init var for offset in x-axis
        left = (if settings.prefix then canvas.width * layout.prefix_offset else 0)

        # get chars of code for drawing every line
        lines = code.split("")

        context.fillRect left, 0, item_width, border_height

        # add number representation if settings.number == true
        if @settings.number

          # set font style
          context.font = layout.font_size * height + "px monospace"

          # get prefix
          prefix = @number.substr(0, 1)

          # print prefix
          context.fillText prefix, 0, border_height * layout.font_y  if @settings.prefix

          # init offset
          offset = item_width * 3 + ((if @settings.prefix then layout.prefix_offset * @element.width else 0))

          # split number
          chars = @number.substr(1, 6).split("")

          # loop though left chars
          $.each chars, (key, value) ->
