fixed xml duplication bug