fix patching failed