fixed injection of plugin manager