fixing registry