removed bug which could crash the xml parser