fixing up bad uris