Fix oauth authorization