diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py
index 90abec0a5..fb7f2d6c0 100644
--- a/modules/ui_extra_networks.py
+++ b/modules/ui_extra_networks.py
@@ -94,11 +94,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"""
-