fix Store distance as Double