Alarm bug fix when undo delete