Fixed wordcount not updating on file open