fix bugs about init mincostflow