bug fix on base_url method