Exports - Fix CSV export

Missing end of the file because for got to handle last line.