Fixed a bug related to time sync