fix PluginManager