Re-fix invert operation