fixed malformed XML