fixed some bugs in install