You shouldn't update this here, it should be updated after the preference is saved to the database