Fixed bug with xml