diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -246,7 +246,7 @@ class CrawlKit {
                             let timeoutHandler;
                             const runnerId = next.value[0];
                             const runner = next.value[1];
-                            Promise.all([runner.getCompanionFiles() || []].map((filename) => {
+                            Promise.all((runner.getCompanionFiles() || []).map((filename) => {
                                 return new Promise((injected, reject) => {
                                     scope.page.injectJs(filename, (err) => {
                                         if (err) {
fix: companionfiles was always an empty array