Fix xml builder error