Fixed a pagination error