fixed the self invoke of the plugin