verify how many groups are opened fix