Fix issue in XML parsing.