fix issue with oauth failure