C: fix AST generation