fix rtc charge issue