Fixed a synchronization problem.