fix url is null => base_url