Fixed bug concerning re download of files