Fix pagination previous class.