Fixed bug with filter creation