fix findNearest