Fix PluginError undefined error