fix pagination skip, was not taking into account per page