Fix error handling for pagination (misleading decision)