fixed a bug with BarrierCoordinator