Fix alarm plugin