Fixed wallet initialization bug