Fix automatic file deletion.