Fixed object type in wordcount