Fixing relative URIs problems