corrected bug in next alarm