fix Preferences