Collision detection fix.