Fix arity of args passed to resulting promise.