fix loading and saving of obsolete xml