Update Preferences.java