no num_chans

consider the condition on which the node.num_chans == 0
fix