more regressions fixes for xml reader