Fixed some issues with additional namespace handling in _get_namespaces