Fix bug with xml.