another bug fix for word indexes