Fixed Bug with filter reference variable