fix withFilter impl