Fixed an issue resulting in unexpected behavior when concatenating two DAGs