fixed the random deletion of Files.