diff --git a/+PlotID/@dataPath/dataPath.m b/+PlotID/@dataPath/dataPath.m
index 2edf934401bf60bcd6a00e15385c3d075a8e3278..fb1841995e594038b590d0f1be6a1b43994d127e 100644
--- a/+PlotID/@dataPath/dataPath.m
+++ b/+PlotID/@dataPath/dataPath.m
@@ -59,7 +59,7 @@ classdef dataPath < handle
                 %checks if input is a valid DataPath object
                   tf = ~isfile(obj.DataPaths);
                   if any(tf)
-                     dataPath.throwError();
+                     obj.throwError();
                   end
             end
         end