fix bug in Wikipedia Index building