Fix bug when installing plugin from gui