Fixed issues with OAuth operations.