Fixing dependency injection used by the web api service.