Fix xml folding