[LPM] Fix PR18642, a pretty nasty bug in IndVars that "never mattered"