adding pull req fix for multiple instances of the plugin