Fix the issue about exporting csv file.