fix bug in incoming_value_flows_dfs