diff --git a/lib/models/Courseware/BlockTypes/BlockType.php b/lib/models/Courseware/BlockTypes/BlockType.php
index 88f07b13f4c6d2673270e576980a09c927c38c7c..de69161b7cc2787d41a428e9ace1242a3d4bfac7 100644
--- a/lib/models/Courseware/BlockTypes/BlockType.php
+++ b/lib/models/Courseware/BlockTypes/BlockType.php
@@ -457,7 +457,7 @@ abstract class BlockType
             $template->set_attributes([
                 'title' => $this->getTitle(),
                 'payload' => $this->getPayload(),
-                'files' => $this->getFiles()
+                'files' => $this->block->files
             ]);
         } catch (\Exception $e) {
             // it catches the exception mostly because the template file could not be found.