Attempt at fixing registry