fixed bug with XMLHelper