Minor fix on the cohort intersection and obs query.