Raytracer fix