Update preferences.json