fix the filter/select bug