diff --git a/python/dune/perftool/pdelab/basis.py b/python/dune/perftool/pdelab/basis.py
index b993e1e234cb4be159922b65db2c5f89489d7a8e..3ea24b34390f00b4c9154d4e208b64b5fcbdefb3 100644
--- a/python/dune/perftool/pdelab/basis.py
+++ b/python/dune/perftool/pdelab/basis.py
@@ -314,7 +314,7 @@ def evaluate_trialfunction(element, name, restriction, component):
 
     temporary_variable(name, shape=())
     lfs = name_lfs(element, restriction, component)
-    index = lfs_iname(element, restriction, context='trial')
+    index = lfs_iname(sub_element, restriction, context='trial')
     basis = name_basis(sub_element, restriction)
     from dune.perftool.pdelab.argument import pymbolic_coefficient
     coeff = pymbolic_coefficient(lfs, index, restriction)