fixed a bug in csv_reader