Fixed group undo not properly working