Fixed the collision bug.