Fixed segment collision dection.