Fix exporting csv data.