fixed affine translation issue