Fix broken paging

Fixes #326

Signed-off-by: Ryan O'Hara <oharar@email.chop.edu>
Merge pull request #335 from ryanjohara/issue-326

Fix broken paging