diff --git a/functions/utilities/exportStandardizedFigure/fct/exportFigureCallback.m b/functions/utilities/exportStandardizedFigure/fct/exportFigureCallback.m
index 56a22f3051d0837a5bd32b55e0818fbc3912e72b..c6cd09063d4ba242783d7b34cba33eaf01513c85 100644
--- a/functions/utilities/exportStandardizedFigure/fct/exportFigureCallback.m
+++ b/functions/utilities/exportStandardizedFigure/fct/exportFigureCallback.m
@@ -32,7 +32,13 @@ end
 figurePath = uigetdir;
 
 % selectedIdx = dropDown.figSelection.Value;
-selectedIdx = handle_getters.Value;
+if isstruct(handle_getters) || isobject(handle_getters)
+    selectedIdx = handle_getters.Value;
+else
+    warning('handle_getters is not a struct or object. It is a %s.', class(handle_getters));
+    selectedIdx = dropDown.figSelection.Items{1};  % or some default fallback
+end
+
 figHandles = findFigures(fig);
 %figToExp = figHandles(strcmp(dropDown.figSelection.Items, selectedIdx));
 figToExp = figHandles(strcmp(dropDown.figSelection.Items, selectedIdx));