Fix RangeSelection clipping

Fixes #216.