fix xml problems