Fix on ray tracing

More accurate ray tracing