bug fix for word indexes