Bug in PluginFactory