Fix so "row_index" can increment

Before my change, the code would not output names at all
Merge pull request #559 from edsfocci/patch-3

Fix so "row_index" can increment