   @ready()
 
   @onStop =>
-    @removed 'SearchResults', id
+    @removed 'SearchResults', searchResultsId
 
     handle.stop()

  ,
    field:
      _id: 1
  ).observeChanges
    added: (id, fields) =>
      count++

    countHandle.stop()

Meteor.publish 'search-available', ->
  searchResultsId = Random.id()
  count = 0
  minPublicationDate = null
  maxPublicationDate = null
