fixed the download bug