Fix another bug in path tracer.