fixed dependency injection errors