fix the package upgrade issue in windows