Fix distance threshold
Release 1.0