Fix api token removal when account is updated