diff --git a/app/controllers/oer/mymaterial.php b/app/controllers/oer/mymaterial.php
index bcabeacfa2459dbdd0f070181712837e4bac5f4f..48bfe8136172988becf0ec53916c73938ed6db77 100644
--- a/app/controllers/oer/mymaterial.php
+++ b/app/controllers/oer/mymaterial.php
@@ -226,7 +226,7 @@ class Oer_MymaterialController extends AuthenticatedController
         }
         $this->counter = OERDownloadcounter::countBySQL("material_id = ?", [$material->id]);
         $this->counter_today = OERDownloadcounter::countBySQL("material_id = :material_id AND mkdate >= :start", [
-            'material_id' => $materia->id,
+            'material_id' => $material->id,
             'start' => mktime(0, 0, 0)
         ]);
     }