Fixed bug related to base url of REST api.