fix the bug in mincut, still need more test.