Fixed bug when trying to import wallet