small fix in metric inverted index