Fix a bug in which categories were not paginated.
Merge pull request #446 from barograf/master

Fix a bug in which categories were not paginated.