Fix #437, persist adv mode state in user pref