Fixes bug with access_token not being passed in the url