fixes sync bug returning var assXMLElem = null