diff --git a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
index 7e2a4d13d8..3af542ef10 100644
--- a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
@@ -5927,15 +5927,18 @@
- 0
+{if isset($grandstream_lan_port_vlan) }
+ 1
-{if isset($grandstream_lan_port_vlan) }
+
{$grandstream_lan_port_vlan}
+
{else}
0
+ 0
{/if}
@@ -6647,7 +6650,7 @@
-{if isset($grandstream_phonebook_download)}
+{if isset($grandstream_phonebook_xml_server_path)}
{$grandstream_phonebook_xml_server_path}{$mac}/
{elseif isset($grandstream_phonebook_xml_server_path)}
{$grandstream_phonebook_xml_server_path}
@@ -6682,7 +6685,7 @@
-{if isset($contact_grandstream)}
+{if isset($contact_groups) || isset($contact_users) || isset($contact_extensions)}
2
{else}
0