fix distance bug