fixed no-pref-file-bug