diff --git a/resources/templates/provision/grandstream/ht818/{$mac}.xml b/resources/templates/provision/grandstream/ht818/{$mac}.xml
index a06247a3ef..26c2cc2b70 100644
--- a/resources/templates/provision/grandstream/ht818/{$mac}.xml
+++ b/resources/templates/provision/grandstream/ht818/{$mac}.xml
@@ -1794,7 +1794,7 @@
- 0
+ {if isset($grandstream_ip_mode)}{$grandstream_ip_mode}{else}0{/if}