fixed an issue with oauth