Fixes limit changing to work correctly with pagination