Fixed a bug about time synchronization