fix the NoMethodError of pinyin