fix grouping when three groups have three different common ids

https://trello.com/c/ziO7G294/12-grouping-group-split-when-selecting-default-item