fix plugin_config method