resampling to unique affine (bug)