Fix handling of real-valued 'to' selection ranges