diff --git a/resources/templates/provision/grandstream/ht801/{$mac}.xml b/resources/templates/provision/grandstream/ht801/{$mac}.xml
index 0aaba031ab..78944d23de 100644
--- a/resources/templates/provision/grandstream/ht801/{$mac}.xml
+++ b/resources/templates/provision/grandstream/ht801/{$mac}.xml
@@ -1875,7 +1875,7 @@
- 0
+ {if isset($grandstream_ip_mode)}{$grandstream_ip_mode}{else}0{/if}