Collision detection bug