fixing bug with xml