Fixing DeactivatePlugin