Handle total_pages < window