fix bug with setting/getting cohort gender value