bug fix for `Select` range