fix problems with registry update of agent data duirng disk attachment