fix bug alarm fire on start.