Update show Distance and fix bug