fix bug on data export