fixed 'heartbeat' error