Corrected CollisionDetection a little bit.