fixing registry update issue