DAG Infinite-Loop Bug Fixed