Fixup for the effect of invert option