diff --git a/python/dune/perftool/pdelab/driver/gridfunctionspace.py b/python/dune/perftool/pdelab/driver/gridfunctionspace.py
index bf20ff6695941280b39d5680a6ca087ca4e54da2..f10938ec892b6f9770e75e5af2c14778d5cb46db 100644
--- a/python/dune/perftool/pdelab/driver/gridfunctionspace.py
+++ b/python/dune/perftool/pdelab/driver/gridfunctionspace.py
@@ -343,14 +343,14 @@ def typedef_vectorbackend(name, element, root):
     include_file("dune/pdelab/backend/istl.hh", filetag="driver")
     if get_option("fastdg") and root:
         blocking = "Dune::PDELab::ISTL::Blocking::fixed"
+        if isinstance(element, MixedElement):
+            blocksize = ""
+        else:
+            include_file("dune/pdelab/finiteelement/qkdglagrange.hh", filetag="driver")
+            blocksize = ", Dune::QkStuff::QkSize<{}, {}>::value".format(element.degree(), get_dimension())
     else:
         blocking = "Dune::PDELab::ISTL::Blocking::none"
-
-    if isinstance(element, MixedElement):
         blocksize = ""
-    else:
-        include_file("dune/pdelab/finiteelement/qkdglagrange.hh", filetag="driver")
-        blocksize = ", Dune::QkStuff::QkSize<{}, {}>::value".format(element.degree(), get_dimension())
 
     return "using {} = Dune::PDELab::ISTL::VectorBackend<{}{}>;".format(name, blocking, blocksize)