fix heartbeat save