fixed activating and deactivating plugins