Fixed bugs in caseControl and cohort report functions