Fix bug with oauth