repair namespaced links