Removed multiple initialization of the barrier