fixed InvertedPhraseIndex main method