updating to fix a pagination error