fixed bug with shapes, colors in subgroups