fixed a seg_fault in node assignment code for HUGE numbers of nodes