fixed rtc-alarm bug