base_uri bug fixed