Missing looping index added.

Missing looping index added.
Without index, empty rows returned for csv column headers.