Fixed alarm manager bug