Bug fix: typo in text.generateTerm()