fix selectAll checkbox won't change

in pagination, set page size to all, then select all in indirectSelect,
then set page size to 50, the selectAll checkbox should be checked but
not.