fix issue if base_url does not exists