remove empty group when back from editing mode