Avg word similarity bug fix