fixed the bug when try to download an array of files