Fix plugin scope