fix AffineTransformations