fix synchronization threads