Fixed error with barrier.