fixes injection with inherited dependencies