fix xml parsing