Fixed minor bug related to custom baseURL option.