Fix error when used in namespaces other than admin