fix getPluginByPath() method