Test and fix download scripting errors