Fixing bug in cohort qual filter