Fixed the issue with range selection.