Update set to setPreference