fix heartbeat