fix bug on install/uninstall service