hsb installation and uninstallation fix