Fix issue with pagination on taxonomies