Fix xml parsing error