fix package dependent for upgrade.