diff --git a/resources/templates/provision/grandstream/ht818/{$mac}.xml b/resources/templates/provision/grandstream/ht818/{$mac}.xml
index 88f170f8d4..625d8a49b2 100644
--- a/resources/templates/provision/grandstream/ht818/{$mac}.xml
+++ b/resources/templates/provision/grandstream/ht818/{$mac}.xml
@@ -1764,7 +1764,7 @@
- 2
+ {if isset($grandstream_ipv_mode)}{$grandstream_ipv_mode}{else}0{/if}