Fix plugin initialization error