diff --git a/enpt/processors/orthorectification/orthorectification.py b/enpt/processors/orthorectification/orthorectification.py
index a219ec8edd0ecad229bb202c9eb788e54b119c51..a43a042fdd76585e61cf7ab71a0259c03f60dd3b 100644
--- a/enpt/processors/orthorectification/orthorectification.py
+++ b/enpt/processors/orthorectification/orthorectification.py
@@ -95,9 +95,9 @@ class Orthorectifier(object):
 
         lons_vnir, lats_vnir = enmap_ImageL1.vnir.detector_meta.lons, enmap_ImageL1.vnir.detector_meta.lats
         lons_swir, lats_swir = enmap_ImageL1.swir.detector_meta.lons, enmap_ImageL1.swir.detector_meta.lats
-        if not enmap_ImageL1.vnir.detector_meta.geolayer_has_keystone:
+        if not enmap_ImageL1.vnir.detector_meta.geolayer_has_keystone and lons_vnir.ndim == 3:
             lons_vnir, lats_vnir = lons_vnir[:, :, 0], lats_vnir[:, :, 0]
-        if not enmap_ImageL1.swir.detector_meta.geolayer_has_keystone:
+        if not enmap_ImageL1.swir.detector_meta.geolayer_has_keystone and lons_swir.ndim == 3:
             lons_swir, lats_swir = lons_swir[:, :, 0], lats_swir[:, :, 0]
 
         # get target EPSG code and common extent