fix xml parsing error