Corrected some bugs in the installation process