fixing preferences.xml