corrects baseurl