Fixed xml saving on backup.
Fixed bug in restore of new snapshots.