Fixed Collision detection.