Fix plugin initialization