Fixing plugin initialization