diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py
index 30ceab4e5..71f1d81f2 100644
--- a/modules/ui_extra_networks.py
+++ b/modules/ui_extra_networks.py
@@ -98,11 +98,13 @@ class ExtraNetworksPage:
dirs = "".join([f"
{x}
" for x in self.allowed_directories_for_previews()])
items_html = shared.html("extra-networks-no-cards.html").format(dirs=dirs)
+ self_name_id = self.name.replace(" ", "_")
+
res = f"""
-