Fix ray_tracing