fixing base_url errors