Corrected collision detection..