Fixed error on filtering by cohort