fix up navigatator and ray-trace bugs