Fix the index into the array of hosts. Use node_inx instead of i
which reads the array boundary.