Correct registry modifications