fix #22601: Deleted bar not reinstated after undo