fix error in get_token()