fixed the price to distance bug