fixing rtc issues