base url fixing