fixed xml copy