fix write to wallet during LoadWallet
Merge pull request #2 from SolarJunkie/patch-1

fix write to wallet during LoadWallet