Bug fixed

fixed a bug when the timer is set to 0, if the user reset it, the alarm
will not be trigger