Fix dependency injection.