Fixed downloadbug also in downloadtool.js