A problem of an incorrect merge
typo
Now the animation group can be deleted without dangling pointers left