Collision detection problem fixed