fixing plugin startup errors