diff --git a/lib/SimpleSAML/Metadata/SAMLParser.php b/lib/SimpleSAML/Metadata/SAMLParser.php
index 02bfa5676384782b281c3ba4bae96fa0a4941b9b..62d37f32ffbf1531266df222b9682af59c4134a5 100644
--- a/lib/SimpleSAML/Metadata/SAMLParser.php
+++ b/lib/SimpleSAML/Metadata/SAMLParser.php
@@ -872,7 +872,7 @@ class SimpleSAML_Metadata_SAMLParser {
 		$ret = array(
 			'scope' => array(),
 			'tags' => array(),
-			'entityAttributes' => array(),
+			'EntityAttributes' => array(),
 		);
 
 		foreach ($element->Extensions as $e) {