fixed and improved pinyin search