diff --git a/src/webui/service/device/routes.py b/src/webui/service/device/routes.py
index c4d320f368c195dd0c197966da9e43c94ae71d09..f59155b9f0ce7d141d6c0e4afa90afdf15b13a42 100644
--- a/src/webui/service/device/routes.py
+++ b/src/webui/service/device/routes.py
@@ -64,8 +64,8 @@ def add():
         form.operational_status.choices.append(
             (DeviceOperationalStatusEnum.Value(key), key.replace('DEVICEOPERATIONALSTATUS_', '')))
     
-    form.device_type.choices = []
     # items for Device Type field
+    form.device_type.choices = []
     for device_type in DeviceTypeEnum:
         form.device_type.choices.append((device_type.value,device_type.value))