 
   unsubscribeGroup: (groupId) =>
     debug 'unsubscribeGroup', groupId
-    redis.del "repeat/#{groupId}"
+    redis.del "active/#{groupId}"
     redis.smembers "groups/#{groupId}", (err, targetIds) =>
       debug 'unsubscribeGroup found', err, targetIds
       _.each targetIds, (targetId) =>

    @unsubscribeTarget groupId, targetId, =>
      redis.sadd "groups/#{groupId}", targetId
      redis.mset
        "repeat/#{groupId}": true
        "repeat/#{targetId}": true

      job = @queue.create('interval', {
          groupId: groupId,

    return if !targetId

    redis.srem "groups/#{groupId}", targetId
    redis.del "active/#{targetId}"

    redis.get "job/#{targetId}", (err, jobId) =>
      debug 'unsubscribeTarget group', groupId, 'target', targetId, 'job', jobId
