clearing stack top after Preference setting