Fixed the installer and automatic upgrade