fix bug in WikipediaBuildIndex