fixed words generation issue.