fix wordcount issue