Overlapped Annotations doesn't have measurements in it (getContents() is undefined)

I am creating the annotations in the UI using the setToolMode(tool). Check this -

const tool = this.viewerInstance.docViewer.getTool(‘AnnotationCreateAreaMeasurement’);
tool.setAllowCreationOverAnnotation(true);
tool.setStyles(() => ({
Scale: [[1, ‘m’], [10, ‘m’]],
Precision: 0.01,
Opacity: 0.65,
FillColor: new this.viewerInstance.Annotations.Color(204, 251, 255)
}));
this.viewerInstance.docViewer.setToolMode(tool);

If I create annotations over another annotation (filled - area), then I am unable to get the measured content like (… sq. m ) of that drawn annotation which I had drawn over the annotation