Fixed bug in set alarm