Fix pagination in overlays and visualizations