filter method bug solved