Fix CropSquareTransformation crash.