diff --git a/templates/web/edugain/select_sp.tt2.html b/templates/web/edugain/select_sp.tt2.html
index 6d8596d77b4f6d655b791dfae8fc99c08017b7ae..8cea3b2277b09deabb98d80d9c31a70e31caa7d3 100644
--- a/templates/web/edugain/select_sp.tt2.html
+++ b/templates/web/edugain/select_sp.tt2.html
@@ -20,7 +20,7 @@
             <legend>[% lh.maketext("Service providers from my own organization") %]</legend>
             <select id="self" name="self">
                 <option value=""></option>
-        [% organization_url == idp.organization_url() %]
+        [% organization_url = idp.organization_url() %]
         [% FOREACH sp IN sps %]
             [% NEXT UNLESS sp.organization_url() == organization_url %]
                 <option value="[% sp.entityid() %]">[% sp.display_name() %]</option>
diff --git a/templates/web/renater/select_sp.tt2.html b/templates/web/renater/select_sp.tt2.html
index edae930f134cbb019058eb9383acec0a701570e2..df2aed818f4eadec2756f978028131a98721a1e7 100644
--- a/templates/web/renater/select_sp.tt2.html
+++ b/templates/web/renater/select_sp.tt2.html
@@ -20,7 +20,7 @@
             <legend>[% lh.maketext("Service providers from my own organization") %]</legend>
             <select id="self" name="self">
                 <option value=""></option>
-        [% organization_url == idp.organization_url() %]
+        [% organization_url = idp.organization_url() %]
         [% FOREACH sp IN sps %]
             [% NEXT UNLESS sp.organization_url() == organization_url %]
                 <option value="[% sp.entityid() %]">[% sp.display_name() %]</option>