Fixing performance issue in TopicWordView