fixing settings in registry