Fixing bug for filters