fix automatic group removal.