diff --git a/lib/models/Statusgruppen.php b/lib/models/Statusgruppen.php
index e0d2575595e0d398a36aa1e8a9575065c96ae3e9..94c8847261d88750a464bd6b7a6720b1b417b4e4 100644
--- a/lib/models/Statusgruppen.php
+++ b/lib/models/Statusgruppen.php
@@ -708,7 +708,7 @@ class Statusgruppen extends SimpleORMap implements PrivacyObject
      * This callback is called after deleting a User.
      * It removes courseware task entries that are associated with the group.
      */
-    public function cbRemoveTask()
+    public function cbRemoveTasks()
     {
         \Courseware\Task::deleteBySQL(
             '`solver_id` = ? AND `solver_type`= "group"',