fix pagination_class issue