To avoid that problem, I generally refresh the metadata for the item before replacing the movie to make sure it’s up to date… Probably a good idea to leave the old version in place as well, until the new version has been added properly. If you delete it first, and have the option to empty trash automatically enabled, all of the watched history will be gone too.