Fix selectall inconsistance when filter is applied