Fix a bug with the alarm.

The alarm would automatically restart if you hit the dismiss button.
This should now be fixed.