I found the culprit line. I hadn’t had time to delve into your lua scripting yet, but I hope i’ll get there soon.
Right now, I’m very much fighting with the copy pasting errors i’m getting. Also for some reason, when undoing a “cut” the group gets back in position but is empty. Is there a way to access the group elements when they are hidden?