Fixed bug with xml parser