solved group** data loss

slicer->getPieces() retunrs a copy of the ** pieces[], to pass along to
whoever needs one.
every time this happens:
sgCGroup *result2 = (sgCGroup*) aux[i]; (to break a group)
aux[i] gets lost!!! does this always happen? how do I prevent data loss?