fixed base_url problems