Quick fix to pagination.