fixed bug in XMLHelper