fix bug in filterObject method for bool gate