Fixed dependency injection bug.