fixed bug in rungrabcut