fix iteration in graph workflow