fixing a bug that caused alarms to keep reappearing