Fixing bug in XML parsing.