bug fixes for invalid namespaces