Fixed bug in filter creation.