diff --git a/python/dune/perftool/blockstructured/geometry.py b/python/dune/perftool/blockstructured/geometry.py
index b933c06ce6e79e717ab3116f39f30d4a5971394f..1ffbdf0417c8261d2f0882b2384ed044af1ddd03 100644
--- a/python/dune/perftool/blockstructured/geometry.py
+++ b/python/dune/perftool/blockstructured/geometry.py
@@ -15,13 +15,13 @@ import pymbolic.primitives as prim
 # scale determinant according to the order of the blockstructure
 def pymbolic_jacobian_determinant():
     return prim.Quotient(prim.Variable(name_jacobian_determinant()),
-                         prim.Power(get_option("number_of_blocks"), local_dimension()))
+                         prim.Power(get_form_option("number_of_blocks"), local_dimension()))
 
 
 # scale Jacobian according to the order of the blockstructure
 def pymbolic_jacobian_inverse_transposed(i, j, restriction):
     name_jit = get_backend(interface="name_jit", selector=option_switch("constant_transformation_matrix"))(restriction)
-    return prim.Product((get_option("number_of_blocks"),
+    return prim.Product((get_form_option("number_of_blocks"),
                          prim.Subscript(prim.Variable(name_jit), (j, i))))
 
 
diff --git a/test/sumfact/stokes/stokes_3d_dg.mini b/test/sumfact/stokes/stokes_3d_dg.mini
index 5f4a2bac06330ee40a500e1d04c5656b376bcbfa..7fb1b22ed1de823afff15f519beb4aa474a3ec11 100644
--- a/test/sumfact/stokes/stokes_3d_dg.mini
+++ b/test/sumfact/stokes/stokes_3d_dg.mini
@@ -14,7 +14,7 @@ extension = vtu
 [formcompiler]
 compare_l2errorsquared = 1e-10
 
-[formcompiler]
+[formcompiler.r]
 numerical_jacobian = 0
 sumfact = 1
 fastdg = 1, 0 | expand fastdg
\ No newline at end of file