Correct printing of header row in CSV export file.