RangeSelection bugfix