While ungrouping the group node with annotations, the `removeLabelExtension` method istriggered. There is a condition that checks if the label ID is equal to the canvas ID. Since the labels array is empty, it throws an exception. This issue needs to be fixed.