Fix XML UI deserialization.