Fixed refreshing of access token for requests.