fixing base_uri bug