Fix plugin initialization.