Fix bug on export with filtered datas