Fixed some bugs in the installer