Fixed bug with word similarity score calculating