Fixes issues with injection into child contexts