Fix for finding base url.