fix bugs in install