Bug fixes in Preferences.