alarm bugfix