correct pagination error