Fixed some errors with nested base_url's