Fix registry file