fixing bug when selecting an elements after applying the selectAll filter