     ctx.closePath()
 
     ctx.beginPath()
-    ctx.arc(@glob.size/2, @glob.size/2, @glob.size/2-6, 0, Math.PI*2, true)
+    ctx.arc(@settings.size/2, @settings.size/2, @settings.size/2-6, 0, Math.PI*2, true)
     ctx.lineWidth = 1
     ctx.strokeStyle = "#000000"
     ctx.shadowBlur  = 0

  deg: (deg) ->
    (Math.PI/180) * deg - (Math.PI/180)*90

  meter: ->
    @glob.secLeft--

    ctx = @canvas.getContext("2d")

    ctx.clearRect(0, 0, @canvas.width, @canvas.height)

    ctx.beginPath()
    ctx.arc(@glob.size/2, @glob.size/2, @glob.size/2-10, 0, Math.PI*2, true)
    ctx.lineWidth = 5
    ctx.strokeStyle = "#1C1C1C"
    ctx.shadowBlur  = 0

    ctx.closePath()

    ctx.beginPath()
    ctx.arc(@settings.size/2, @settings.size/2, @settings.size/2-13, 0, Math.PI*2, true)
    ctx.lineWidth = 1
    ctx.strokeStyle = "#444444"
    ctx.shadowBlur  = 0
    ctx.stroke()
    ctx.closePath()

    if (@settings.now < @settings.endDate)
      ctx.beginPath()
      ctx.strokeStyle = @settings.secondsColor
      ctx.shadowBlur    = 10
      ctx.shadowOffsetX = 0
      ctx.shadowOffsetY = 0
      ctx.shadowColor   = @settings.secondsGlow

      degs = (360 / Math.floor(@settings.endDate - @settings.startDate)) * (Math.floor(@settings.endDate - @settings.startDate) - @settings.secLeft)
      ctx.arc(@canvas.width/2, @canvas.height/2, @settings.size/2-10, @deg(0), @deg(degs))
      ctx.lineWidth = 5
      ctx.stroke()
      ctx.closePath();

      $(".timer .secs").text(60 - @settings.seconds)
      $(".timer .mins").text(60 - @settings.minutes)
      $(".timer .hrs").text(24 - @settings.hours)
      $(".timer .days").text(@settings.days)


  start: =>
    counterIntervalId = setInterval((=>
      if ( @settings.seconds > 59 )
        if (60 - @settings.minutes == 0 && 24 - @settings.hours == 0 && @settings.days == 0)
          clearInterval(counterIntervalId)
          return

        @settings.seconds = 1

        if (@settings.minutes > 59)
          @settings.minutes = 1

          if (@settings.hours > 23)
            @settings.hours = 1
            @settings.days-- if @settings.days > 0
          else
            @settings.hours++
        else
          @settings.minutes++
      else
        @settings.seconds++

      @meter()
    ),1000)


window.Counter = Counter