safer closest(), close #111