fix the bug I introduced with my prior bugfix in XML processing