fix a bug about xml