Fixed bugs in TagWords.