fix data exporting