fixed scheduling of heartbeat