Fixed the collision on the x-axis