   
   # Remove given dependencies from the key
   _remove_dependencies: (key, deps) ->
-    @_count[key] -= deps.length
+    @_dependency_count[key] -= deps.length
     @deps[dep] = _.without @deps[dep], key for dep in deps
   
   # Recovery failed, let the callback know about it.

  # zero, it is rescheduled.
  _progress: (keys) ->
    for key in keys
      unless --@_count[key]
        @_reschedule key

  # Clear the timeout for idling

    @_control_channel = new ControlChannel db_index: db_index
    @_requests_channel = new RequestChannel db_index: db_index
    @_responses_channel = new ResponseChannel db_index: db_index
    @_dependency_count = {}
    @_state = {}
    @_cycles = {}

