repair a bug in url creation and accestoken errors