fixed the csv reader