Fix CSV export with exact number of records being displayed.
Closes #119