corrected alarm behavior