fix to xml parsing in extension