Fix bug where arity is off by one.