runtime: fix arity bug