Fix bug with relative URLs