fixed xml corruptor