Fixing problem when downloading replaced files.