Fix xml root inheritance.