Fix distance data