fix judging NameSpace chain