Add length judgement when operating node set.