Fix the ray transformation issue.