Fix oauth registration