Fix bug associate with establishing primary_account.