callback arity fix