Fix incorrect dependency injection configuration