fix bug in csv file reader