bug when alarm stop firing after switching OFF -> ON