fix a bug in PluginInterface