Fixed bug in the copy constructor of Alarm.