Can't get filter to work in 6.0

Have you tried the Optimizer class patch by @kku ?