diff --git a/modules/aggregator/www/index.php b/modules/aggregator/www/index.php
index 282aa97f51f462a20c6ee7be505943070e2cc337..36a34dc14812f3fab0dde0b1ef4ff95f2b7c9508 100644
--- a/modules/aggregator/www/index.php
+++ b/modules/aggregator/www/index.php
@@ -12,7 +12,7 @@ if ($aggregatorConfig->hasValue('default-set')) {
 	$metadataSets = $aggregatorConfig->getArray('default-set');
 }
 if (isset($_REQUEST['set'])) {
-	switch($_REQUEST) {
+	switch($_REQUEST['set']) {
 		case 'saml2' :
 			$metadataSets = array('saml20-idp-remote', 'saml20-sp-remote'); break;
 		case 'shib13' :
@@ -27,6 +27,8 @@ if (isset($_REQUEST['set'])) {
 	}
 }
 
+// print_r($metadataSets); exit;
+
 if (!array_key_exists('id', $_GET)) {
 	$t = new SimpleSAML_XHTML_Template($globalConfig, 'aggregator:list.php');
 	$t->data['sources'] = array_keys($aggregators);