fix errors with oauth.conection function