fix install generator bug