Properly match namespaces/wildcards