Fix pinyin mode and dconf usage