Fixing oauth token refresh