Fix that there is a possibility of not heartbeat