fix bug of turning off heartbeat in config