Hotfix to pagination.