Fix preference/xml loading.