Fixes bug with possibly non defined namespaces method