fix a bug about getting null machine in HeartBeatAlert