fixed Collision Detection