GrubCut bug fix