diff --git a/src/spm/spm.moon b/src/spm/spm.moon
index 89fd505..7c497dc 100644
--- a/src/spm/spm.moon
+++ b/src/spm/spm.moon
@@ -344,7 +344,7 @@ installPackage = (requestedPackage, installPath, doUpdate) ->
     locallyInstalledPackages[requestedPackage] = {}
     term.write("Installing Files...")
     for filePath, requestedInstallPath in pairs(packageInfo.files) 
-        installedPath
+        installedPath = nil
 
         if string.find(requestedInstallPath, "^//") 	
             localInstalledPath = string.sub(requestedInstallPath, 2)
@@ -360,7 +360,7 @@ installPackage = (requestedPackage, installPath, doUpdate) ->
             installedPath = fs.concat(installPath, requestedInstallPath, string.gsub(filePath, ".+(/.-)$", "%1"), nil)
 
 
-        downloadPath
+        downloadPath = nil
         if (packageInfo.minified or options.m) and not options.nm 
             downloadPath = repositoryPath .. "/" .. string.gsub(filePath, "(.+)%.lua$", "%1") .. ".min.lua"
         else