fix RTC read bug