fix saving errors in WalletXMLSource