fixed xml bug