fix for non-uniform scales and rotations