Fix for the distance formatting