Fixed for negative scale transformations.