Fixing rotation and scaling.