Fix bug when modifying wallet in app.