fixing inverted version of a RangeCut