fix download
(cherry picked from commit 320ab81aeb3c8e9a6262cfdc8a6b61aee858a1e3)