Fixed export to csv, pdf, excel bug