DI container cannot reinject dependencies