Corrected a minor dependency injection issue.

Wrong snippet …