fixed malformed xml