Fix the FanIn DAG problem