Fixed plugin initialization