Fix bug in dep injection

We were mis-computing the arguments to a function.