fixed error in readcsv