fix a bug with github Oauth