fix install bug for hosts