fix null pointer in word2vec