repair the baseurl