Fixed a bug with incorrect base url initialization