fix heartbeat thread of queue