Fixed bug in synchronizationBarrier.