Used the wrong type for the barrier