Fix filtering rules