Fixed crash on update when app is closed
Fixed not-restarting alarm bug