Fixed another problem in control script and install script