Add missing registry entries.
Fix error arising if there are local changes.