bugfix for filter method