Correct indexes for dependency injection.