Fix pagination click-through issue