Installer script bug fix