print grouped disjoint-classes and do not group them

fixes #1394