Fixing a registry permission when loading the settings