Fixed bug introduced in addWalletToApplication