fixed bug with empty groups in graph2d