Fixed bug with non-removed alias in DAG.