fixed errors to import/open wallets

This PR includes a minimal fix for fromObj/read methods in order to import/open a wallet.