Fix static call of non static method in install and uninstall process