Fixed bugs in install.