fix pending nodes. fix sum_product. fix order of nodes given to sum_product