Fix of Inverted Index impl