Fixed incorrect XML node bug