Fixed implicitly captured context in IoC bindings.