diff --git a/src/lib/file-uploader.js b/src/lib/file-uploader.js
index 270f2178ad1c62c9366c82597af51aed76cad355..70fb32aff15e6df281afc25d12d2f47df1f46b0f 100644
--- a/src/lib/file-uploader.js
+++ b/src/lib/file-uploader.js
@@ -208,7 +208,7 @@ const spriteUpload = function (fileData, fileType, spriteName, storage, handleSp
     case 'image/jpeg':
     case 'image/gif': {
         // Make a sprite from an image by making it a costume first
-        costumeUpload(fileData, fileType, storage, (vmCostumes => {
+        costumeUpload(fileData, fileType, storage, vmCostumes => {
             vmCostumes.forEach((costume, i) => {
                 costume.name = `${spriteName}${i + 1}`;
             });
@@ -231,7 +231,7 @@ const spriteUpload = function (fileData, fileType, spriteName, storage, handleSp
             randomizeSpritePosition(newSprite);
             // TODO probably just want sprite upload to handle this object directly
             handleSprite(JSON.stringify(newSprite));
-        }));
+        });
         return;
     }
     default: {