codegen: fix bug in calling conv