fix a bug of add_word