diff --git a/modules/statistics/config-templates/module_statistics.php b/modules/statistics/config-templates/module_statistics.php
index 3bf2c749716df48ecdf44e4f84526288ba3c5ed6..89c97c4250ceb7baab34ba5711a4fd336b4a9a78 100644
--- a/modules/statistics/config-templates/module_statistics.php
+++ b/modules/statistics/config-templates/module_statistics.php
@@ -173,7 +173,7 @@ $config = array (
             'action'       => 'slo-iframe',
             'col'          => 6,                     // Page the user visits.
         ),
-        slofail' => array(
+        'slofail' => array(
             'name'         => 'Failed iframe IdP-init SLOs',
             'descr'        => 'The number of logout failures from various SPs',
             'action'       => 'slo-iframe-fail',
diff --git a/modules/statistics/lib/Aggregator.php b/modules/statistics/lib/Aggregator.php
index 3504768898bbf5e6df53cd9229dc329ef297e441..4ec74019c94df52cc7422193470678ac560cfc9d 100644
--- a/modules/statistics/lib/Aggregator.php
+++ b/modules/statistics/lib/Aggregator.php
@@ -219,7 +219,7 @@ class sspmod_statistics_Aggregator
     private function cummulateData($previous, $newdata)
     {
         $dataset = array();
-        foreach ($previous sd $slot => $dataarray) {
+        foreach ($previous as $slot => $dataarray) {
             if (!array_key_exists($slot, $dataset)) {
                 $dataset[$slot] = array();
             }
diff --git a/modules/statistics/templates/statistics.tpl.php b/modules/statistics/templates/statistics.tpl.php
index 7059e738e38d24b3837a8d83f713963e11be7bc4..fb4a59d18ceea7532b099b5135142e827ef8a53d 100644
--- a/modules/statistics/templates/statistics.tpl.php
+++ b/modules/statistics/templates/statistics.tpl.php
@@ -3,7 +3,7 @@ $this->data['header'] = 'SimpleSAMLphp Statistics';
 
 $this->data['jquery'] = array('core' => true, 'ui' => true, 'css' => true);
 
-$this->data['head'] = '$this->data['head']  = '<link rel="stylesheet" type="text/css" href="/' .
+$this->data['head'] = '<link rel="stylesheet" type="text/css" href="/' .
     $this->data['baseurlpath'] . 'module.php/statistics/style.css" />';
 $this->data['head'] .= '<script type="text/javascript">
 $(document).ready(function() {