A bug has been fixed in function heartbeat().