fixed but when search value is out of range