distance conversion fix