bugfix: raytracer to index