       wasReady.set false
 
   @_searchParametersHandle?.stop()
-  @_searchParametersHandle = Deps.autorun ->
+  @_searchParametersHandle = Deps.autorun =>
     # Every time filter or sort is changed, we reset counts
     # (We don't want to reset counts on currentLimit change)
     Session.get variables.filter

          Session.set variables.loading, false
    else
      Session.set variables.loading, false

Template.catalog.destroyed = ->
  @_resetSignalHandle?.stop()

  @_searchParametersHandle = null
  @_subscriptionAutorunHandle?.stop()
  @_subscriptionAutorunHandle = null
  @_searchResultHandle?.stop()
  @_searchResultHandle = null

Template.catalogFilter.documentsName = ->
  @documentClass.verboseNamePlural()
