Ray tracing demo: Replace-all mistake