fixed a collision bug