diff --git a/silecs-model/src/xml/DeploySchema.xsd b/silecs-model/src/xml/DeploySchema.xsd
index 350dab940329400babc99ec73bd2688771114514..c736042ca19aab70580b8a6ec75deb72a4a161cd 100644
--- a/silecs-model/src/xml/DeploySchema.xsd
+++ b/silecs-model/src/xml/DeploySchema.xsd
@@ -98,6 +98,14 @@
 			<xs:selector xpath="Controller/*/Device" />
 			<xs:field xpath="@fesa-device-name" />
 		</xs:unique>
+		<xs:keyref name="SilecsDesignRef" refer="SilecsDesign">
+			<xs:selector xpath="Controller/*/Device" />
+			<xs:field xpath="@silecs-design-ref" />
+		</xs:keyref>
+		<xs:key name="SilecsDesign">
+			<xs:selector xpath="SilecsDesign" />
+			<xs:field xpath="@silecs-design-name" />
+		</xs:key>
 	</xs:element>
 
 	<xs:complexType name="ControllerType">
@@ -634,14 +642,4 @@
 			</xs:extension>
 		</xs:complexContent>
 	</xs:complexType>
-
-	<xs:keyref name="SilecsDesignRef" refer="SilecsDesign">
-		<xs:selector xpath="Controller/*/Device" />
-		<xs:field xpath="@silecs-design-ref" />
-	</xs:keyref>
-	<xs:key name="SilecsDesign">
-		<xs:selector xpath="SilecsDesign" />
-		<xs:field xpath="@silecs-design-name" />
-	</xs:key>
-
 </xs:schema>