Bug fixing in word iteration.