Fixed a bug in parts/download.js