minor bug fix in recovery tool and changeWalletEncryption