Fix xml configuration serialization