Fix a bug in reading csv files.