Update PreferencesManager.java