fixed upgrade patching