Change range selection condition