fix bug where only the first row was written for csv
fix bug where only the first row was written for csv

nyaruka/smartmin,caktus/smartmin,caktus/smartmin,caktus/smartmin,nyaruka/smartmin,nyaruka/smartmin,caktus/smartmin