remove pref from xml