fix bug with oauth