fixed km to m conversion in distance calculation