Bugfix in the installation function and logout