Corrected collision detection