bug fix in names of optional groups