minor fixes for wallet creation