download() return bug fix