Fixed the alarm setup