distance fix #2