Fix distance function