diff --git a/templates/web/account_wizard.tt2.html b/templates/web/account_wizard.tt2.html
index 7f566fe91165b9a177b5ad069dd99ae8c8a9bb6a..3041612cfe711d5ba28823fbf130c32216b55dcd 100644
--- a/templates/web/account_wizard.tt2.html
+++ b/templates/web/account_wizard.tt2.html
@@ -111,7 +111,7 @@ Note that only Service Providers are in the list which are included in the eduGA
 
     <select id="sp_entityid" name="sp_entityid" class="required">
         <option value="">Select your Service Provider below</option>
-        [% FOREACH entity IN federation_metadata_as_hashref.sort('default_display_name') %]
+        [% FOREACH entity IN metadata.sort('default_display_name') %]
 <option value="[% entity.entityid %]">[% IF entity.default_display_name %][% entity.default_display_name %] [% END %]([% entity.entityid %])</option>
         [% END %]
     </select>