fix mac os x preferneces bug (https://github.com/chatch/pinyin-toolkit/issues/7)