Fix bug with setting primary account.