move namespace check to avoid SEGV on 1::Foo