ground distance bug correction attempt