fix distance list