- filter out invalid index ids earlier