fix wallet creation problem