fixed fairly major logic flaw in the CsvFile parser