diff --git a/extensions/chaeo/examples/test_modify_object_classifier.py b/extensions/chaeo/examples/test_modify_object_classifier.py
index a81577904eb1b1629fee3104218538ef2302db63..11ac90e717d464ac1186e0b345f13ac16222b0d1 100644
--- a/extensions/chaeo/examples/test_modify_object_classifier.py
+++ b/extensions/chaeo/examples/test_modify_object_classifier.py
@@ -13,7 +13,7 @@ def modify_ilastik_object_classifier(template_ilp: Path, lane: int = 0):
     proj_name = template_ilp.stem
     proj_new_ilp = shutil.copy(template_ilp, proj_dir / ('mod_' + proj_name + '.ilp'))
 
-    with h5py.File(where / proj_new_ilp, 'r+') as h5:
+    with h5py.File(proj_dir / proj_new_ilp, 'r+') as h5:
 
         # delete ObjectExtraction / RegionFeatures / 0000
         # delete ObjectClassification/ClassifierForests
@@ -33,7 +33,7 @@ def modify_ilastik_object_classifier(template_ilp: Path, lane: int = 0):
             pa = Path(h5[f'{key}/filePath'][()].decode())
             assert pa.is_absolute()
             rel_pa = pa.name
-            assert (where / rel_pa).exists()
+            assert (proj_dir / rel_pa).exists()
             del h5[f'{key}/filePath']
             h5[f'{key}/filePath'] = rel_pa
             assert h5[f'{key}/filePath'][()] == rel_pa.encode()