repair namespaces