Fix error handling for pagination