Adjusting algebra AST nodes