I find this grouping problem comes from having a unit in a previous group. If you split a unit from a group you need to ungroup the whole group and then reform smaller groups. If you group units whilst still in a large group it seems to remember the previous large groups settings and postitions.