Fixed small bug when getting a base URL.