distances fix