sexy fix for the collision detection