Minimal change to existing logic for INVERT_TARGET