fixing a serious bug in mincut dues to deep clone.