Fixed error in TimeSync