diff --git a/app/controllers/files.php b/app/controllers/files.php
index 46a67e611b23b2794f6564a9ecbd0be414a12bda..3c77f4e50d77b3d2762ccb3778da1735ebd4c4d1 100644
--- a/app/controllers/files.php
+++ b/app/controllers/files.php
@@ -519,8 +519,8 @@ class FilesController extends AuthenticatedController
 
             $this->addFiltersToOverviewSidebar(['time_range', 'course']);
             $this->table_title = _('Meine hochgeladenen Dateien');
-            $file_refs = FileRef::findUploadedFiles($GLOBALS['user']->id, $this->begin, $this->end, $this->course_id, $this->page_size, $offset);
-            $this->files_c = FileRef::countUploadedFiles($GLOBALS['user']->id, $this->begin, $this->end, $this->course_id);
+            $file_refs = FileRef::findUploadedFiles($GLOBALS['user']->id, $this->begin, $this->end, $this->course_id, false, $this->page_size, $offset);
+            $this->files_c = FileRef::countUploadedFiles($GLOBALS['user']->id, $this->begin, $this->end, $this->course_id, false);
             $pagination = Pagination::create(
                 $this->files_c,
                 $this->page - 1,