Fixed the AlarmAPI