fix bugs in install.sh