Corrects base-url