Fixed problem related to surface normals in trace_ray