Fixed a problem setting the "base" for the API URLs