bug correction in word dictionary ordering