Fixed reading from CSV file