quick fix for pagination error