Fix plane-ray intersection routine.