Fix filter sanitizing