Fixed issue with distance updating weirdly.