fixed crash on entering alarm view