Fix oauth loging failure.