Fix for scoping of curried dependency calls