fix package upgrade