fix xml context