             ticket = App.TicketReport.fullLocal( record.id )
             ticket_collection.push ticket
 
-        table( ticket_collection, data.count )
+        table(ticket_collection, data.count)
     )
 
 class TimeRangePicker extends App.Controller

    if !active
      @el.find('.js-dataDownloadBackendSelector').first().parent().addClass('active')

    @el.find('.js-dataDownloadBackendSelector').each( (index, element) =>
      if $(element).parent().hasClass('active')
        @profileSelected = $(element).data('profile')
        @backendSelected  = $(element).data('report')
    )

    @tableUpdate()

  render: ->

    reports = []

    # select first backend, if no backend is selected
    $('.js-backendSelector:checked').each( (index, element) ->
      if $(element).hasClass('download')
        value = $(element).val()
        reports.push value
    )

    # get used profiles
    profiles = []
    for key, value of @params.profileSelected
      if value
        if !@profileSelectedId
          @profileSelectedId = key
        profiles.push App.ReportProfile.find(key)

    @html App.view('report/download_header')(
      reports:  reports
      profiles: profiles
      metric:   @config.metric[@params.metric]
    )

    @backendSelected = ''

    active = false
    @el.find('.js-dataDownloadBackendSelector').each( (index, element) ->
      if $(element).parent().hasClass('active')
