This change is no correct; pagination will not work correctly if you set the total at this point