Fix failure on removing a class from a group