fix plugin_loaded