Fixed set alarm when preferences changed