Bug fixed: Generation of the log output.

The indexes of the loop that creates the log output was wrong for the
nodes that are not participating in the acution.