fixed downloadFiles