Fixed initialization of plug-in