Fixed 3D scaling issues.