fix ray tracer