Fixed dependency injection error