Corrects base URL