fixed cloning of AST nodes