Fixing usage of AlarmRepository