fix xml loading