Cortex node it's iterating over all items, but it's not accumulating the results. Hence just the last item is returned.