amend wrong last fix (no copying of AST for funcs)