Fixes header and baseurl issues.