I've had this pop up and its extremely annoying.

Basically units that didnt exist in a group magically appear in it when you're issuing orders.

I think the way to get rid of it is to set the offending groups units in question to some kind of "formation" using the formations button.