Fixed errors when no cohort selected for prediction