Changed arity error to RangeError