solving an issue with the heartbeat parameter