diff --git a/hog/operator_generation/indexing.py b/hog/operator_generation/indexing.py
index 5e96c7c99ae1fbe8452864348807d62570c26a8b..0ed065521347056c0ea60a3af5b68efefe9844cb 100644
--- a/hog/operator_generation/indexing.py
+++ b/hog/operator_generation/indexing.py
@@ -256,7 +256,7 @@ def facedof_index(
     faceType: Union[None, EdgeType, FaceType, CellType],
 ) -> int:
     """Indexes triangles/faces. Used to compute offsets in volume dof indexing in 2D and AoS layout."""
-    x, y = index
+    x, y, _ = index
     width = num_faces_per_row_by_type(level, faceType)
     if faceType == FaceType.GRAY:
         return linear_macro_face_index(width, x, y)