fix timesync bug