fix registry file