Fix funkiness in pagination near 3rd and 4th page