Fix RepositoryPluginManager use bug