Repair modification tracking after opening a file.