fix a bug in func handle_alarm_status