select range bug fixed