Fixes an issue when downloading/uploading multiple files