quick fix for pagination