fixed some installation bugs