refresh distance indicator in the case of undo/redo