Fixed crash when Alarms were modified during UpdateAlarms()