diff --git a/src/thd_json/dict_converter.py b/src/thd_json/dict_converter.py
index a17e845b7d1c90c34be02c9de5126aecfb28b567..60b3b801f7a780527dfacfb0cce9ac81eb8f4355 100644
--- a/src/thd_json/dict_converter.py
+++ b/src/thd_json/dict_converter.py
@@ -3,7 +3,7 @@ import numpy as np
 
 def detector_coord_to_dict(detector_coord: np.ndarray):
     assert len(detector_coord.shape) == 1
-    assert detector_coord.shape[2] == 3
+    assert detector_coord.shape[0] == 2
     detector_coord = detector_coord.tolist()
     return {"u": detector_coord[0], "v": detector_coord[1]}
 
diff --git a/src/thd_json/projection/__init__.py b/src/thd_json/projection/__init__.py
index 06c9b53ca01ff559bf7c521d87b9c6d2cf12825a..0c4b663578e3617c5387f1648544b7002543dbfd 100644
--- a/src/thd_json/projection/__init__.py
+++ b/src/thd_json/projection/__init__.py
@@ -64,7 +64,7 @@ def get_projection_dict(
     )
 
     projection['detector'] = get_detector_dict(image_dimensions_px, pixel_pitch_mm)
-    projection['image'] = {'image_path', str(image_path)}
+    projection['image'] = {'image_path': str(image_path)}
 
     return projection