fix plane-ray intersection