Fix bug with EventDispatcher and PluginInterface