handle deleted files in history