fix code path when plugin not activated