need to fix InvertedIndexBatch