Fixed a bug in the XMLSerialization