fix some install bugs