fix search nearest