make sure index changes can be propagated through conditional sections