Fix alarm calling problem