Fix filter creation