fix crash when linking external account from account manager