Fix plugin duplication bug