Fixed bug to include set of nodes from the last collection batch