Fixed CSVwriter at lines 450-460