correct mistake on alarm API