fix RemovePluginRefs