Fix to distance function on User