Fixed paginate problem with CSV download