Fix error when base url is configured.