Fix base URI lookup.