fix Preference file.