Attempt to fix base URL problems.