fix bug of exporting data template