Fix failure on removing a class/group/node from a group