diff --git a/pystencils/backends/cbackend.py b/pystencils/backends/cbackend.py
index 8259dffc44e473511bec5a6529d539018b38acbd..892c3b744e651d66770de13c03c9b9302a724ee0 100644
--- a/pystencils/backends/cbackend.py
+++ b/pystencils/backends/cbackend.py
@@ -178,7 +178,8 @@ class CBackend:
         raise NotImplementedError(self.__class__ + " does not support node of type " + str(type(node)))
 
     def _print_KernelFunction(self, node):
-        function_arguments = ["%s %s" % (str(s.symbol.dtype), s.symbol.name) for s in node.get_parameters()]
+        parameters = node.get_parameters()
+        function_arguments = ["%s %s" % (str(s.symbol.dtype), s.symbol.name) for s in parameters]
         launch_bounds = ""
         if self.__class__ == 'cuda':
             max_threads = node.indexing.max_threads_per_block()