Fix possible synchronization error.