dependency injection fix