fix pagination class