Fixing infinite loop in cuke namespace check.