fixed issue with pagination and csv export