fix download bug