fixed broken check on base_url