diff --git a/resources/templates/provision/grandstream/ht802/{$mac}.xml b/resources/templates/provision/grandstream/ht802/{$mac}.xml
index 64a5e3b5c9..2a32b139a2 100644
--- a/resources/templates/provision/grandstream/ht802/{$mac}.xml
+++ b/resources/templates/provision/grandstream/ht802/{$mac}.xml
@@ -2451,7 +2451,7 @@
- 0
+ {if isset($grandstream_ip_mode)}{$grandstream_ip_mode}{else}0{/if}