fix uri:s for root and relative uri's