fix filter method bug