Fix rowData overrite bug

Row data is ovewritten making CSV to contain just the last row
Merge pull request #1386 from chanep/patch-1

Fix rowData overrite bug