fix invalid xml response