diff --git a/core/codegen/platform/src/main/java/org/overture/codegen/trans/assistants/BaseTransformationAssistant.java b/core/codegen/platform/src/main/java/org/overture/codegen/trans/assistants/BaseTransformationAssistant.java
index <HASH>..<HASH> 100644
--- a/core/codegen/platform/src/main/java/org/overture/codegen/trans/assistants/BaseTransformationAssistant.java
+++ b/core/codegen/platform/src/main/java/org/overture/codegen/trans/assistants/BaseTransformationAssistant.java
@@ -105,6 +105,7 @@ public class BaseTransformationAssistant
 				LinkedList<SStmIR> statementsToLift = block.getStatements();
 
 				ABlockStmIR liftedBlock = new ABlockStmIR();
+				liftedBlock.setScoped(block.getScoped());
 				liftedBlock.setLocalDefs(defsToLift);
 				liftedBlock.setStatements(statementsToLift);
Fix scoping issue in the code-generation platform