fix search by range bug