fixed filterResults bug