update distance fixed