Fix the collision detection: