fixed problem with find closest