fixes exports to csv and xls conflict with pagination