fix heartbeat deadline bug